package com.yenlien.traceyun.business.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
 * 物料管理实体类
 */
@Entity
@Table(name = "t_material_management")
@Data
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
public class MaterialManagement extends TraceEntity {
    @Column(name = "materialType", length = 20)
    private String materialType;                    //物料类型
    @Column(name = "materialName", length = 50)
    private String materialName;                    //物料名称
    @Column(name = "materialCode", length = 50)
    private String materialCode;                    //物料代码
    @Column(name = "materialSpecification", length = 50)
    private String materialSpecification;           //物料规格
    @Column(name = "unit", length = 20)
    private String unit;                            //单位

    @Transient
    private int pages;                              //页数
}
